package com.sumainfor.pc.epc.controller.housekeeper;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.feign.Zfeign.ZpcMktFeign;
import com.sumainfor.pc.epc.service.HoHpbService;
import com.sumainfor.pc.epc.service.HoHpiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/housekeeper/HoDecorateHpb")
public class HoHpiController implements Serializable{

    @Autowired
    private HoHpiService hoHpiService;

    /**
     *修改某个房源的土建验房项
     */
    @PostMapping("/updateHoHpi")
    public JsonResult updateHoHpi(@RequestBody Map<String, Object> params) {
        return hoHpiService.updateHoHpi(params);
    }
    /**
     *查询某个房源的配置详表OR网络和电视
     */
    @GetMapping("/getHoHpiIfWiFiList")
    public JsonResult getHoHpiIfWiFiList(@RequestParam Map<String, Object> params) {
        return hoHpiService.getHoHpiIfWiFiList(params);
    }
    /**
     *查询某套房源的 各个审核状态的数量
     */
    @GetMapping("/getHoHpiStateCount")
    public JsonResult getHoHpiStateCount(@RequestParam Map<String, Object> params) {
        return hoHpiService.getHoHpiStateCount(params);
    }
    /**
     *修改全部验房项
     */
    @PostMapping("/updateHoHpiHpb")
    public JsonResult updateHoHpiHpb(@RequestBody Map<String, Object> params) {
        System.out.println("params："+params);
        return hoHpiService.updateHoHpiHpb(params);
    }
    /**
     *租客端统计智能设备余额 查询房间的智能设备编号列表
     */
    @PostMapping("/key/getHoRdCensusInteDeviceList")
    public JsonResult getHoRdCensusInteDeviceList(@RequestBody Map<String, Object> params) {
        System.out.println("params："+params);
        return hoHpiService.getHoRdCensusInteDeviceList(params);
    }
    /**
     *智能设备充值 查询租客所租的房子智能设备余额的和
     */
    @PostMapping("/getRdCensusHouConInfo")
    public JsonResult getRdCensusHouConInfo(@RequestBody Map<String, Object> params) {
        System.out.println("params："+params);
        return hoHpiService.getRdCensusHouConInfo(params);
    }
}
